//
//  DKUnathorizedMainNoBillView.m
//  DanKU
//
//  Created by 吴斌 on 2023/10/24.
//

#import "DKUnathorizedMainNoBillView.h"

@implementation DKUnathorizedMainNoBillView
-(instancetype)init{
    if(self == [super init]){
        self.backgroundColor = UIColor.clearColor;
        [self dk_addSubView];
    }
    return self;
}
- (void)dk_addSubView{
    UIImageView * dk_billImgView = [[UIImageView alloc] init];
    dk_billImgView.userInteractionEnabled = YES;
    dk_billImgView.image = DK_GetImage(@"dk_MainNoBill");
    [self addSubview:dk_billImgView];
    [dk_billImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@(DK_IsWidthScale(0)));
        make.height.equalTo(@(DK_IsWidthScale(57)));
        make.width.equalTo(@(DK_IsWidthScale(93)));
        make.centerX.equalTo(self);
    }];
    UILabel * dk_billTitleLab = [[UILabel alloc] init];
    dk_billTitleLab.textColor = DK_Hex(@"#CCCCCC");
    dk_billTitleLab.text = @"No bill temporarily";
    dk_billTitleLab.font = DK_FONT_Regular(13);
    dk_billTitleLab.textAlignment = NSTextAlignmentCenter;
    [self addSubview:dk_billTitleLab];
    [dk_billTitleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DK_IsWidthScale(0)));
        make.right.equalTo(@(DK_IsWidthScale(0)));
        make.top.equalTo(dk_billImgView.mas_bottom).offset(DK_IsWidthScale(13));
        make.height.equalTo(@(DK_IsWidthScale(18)));
    }];
}

@end
